package com.zj.osm.entity.greendao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 多媒体类 和点多对一
 *
 * @author jiang zhu on 2019/10/24
 */
@Entity
public class Multimedia {

    @Id(autoincrement = true)
    private Long id;

    @Index(unique = true)
    private String multimediaId;

    //点的ID
    private Long pointId;

    //多媒体名字
    private String name;

    //存储路径
    private String path;

    @Generated(hash = 126295854)
    public Multimedia(Long id, String multimediaId, Long pointId, String name,
            String path) {
        this.id = id;
        this.multimediaId = multimediaId;
        this.pointId = pointId;
        this.name = name;
        this.path = path;
    }

    @Generated(hash = 998561682)
    public Multimedia() {
    }

    @Override
    public String toString() {
        return "Multimedia{" +
                "id=" + id +
                ", multimediaId='" + multimediaId + '\'' +
                ", pointId=" + pointId +
                ", name='" + name + '\'' +
                ", path='" + path + '\'' +
                '}';
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMultimediaId() {
        return this.multimediaId;
    }

    public void setMultimediaId(String multimediaId) {
        this.multimediaId = multimediaId;
    }

    public Long getPointId() {
        return this.pointId;
    }

    public void setPointId(Long pointId) {
        this.pointId = pointId;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return this.path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
